package com.k12.admim.model.vo;

import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Objects;

@Data
public class MenuVo {
    private Long menuId;

    private Long tenantId;

    private String menuName;

    private Long parentId;

    private Integer orderNum;

    private String path;

    private String component;

    private String query;

    private String frameStatus;

    private String cacheStatus;

    private String menuType;

    private String visible;

    private String status;

    private String perms;

    private String icon;

    private String routeName;

    private String createBy;

    private Date createTime;

    private List<MenuVo> children;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MenuVo menuVo = (MenuVo) o;
        return Objects.equals(menuId, menuVo.menuId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(menuId);
    }
    
}